distribution of profit in given ratio